package com.example.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Weekend {
    //请假条编号
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    //员工id
    private Integer userId;
    //请假类型
    private Integer typeDate;
    //开始时间
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    //结束时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime creatTime;
    //修改人

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;


    //修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    //状态
    private Integer status;
    //请假原因
    private String content;
    //批注
    private String remark;
    //用户对象
    @TableField(exist = false)
    private User user;
    //批改对象
    @TableField(exist = false)
    private User user1;
    //类型名
    @TableField(exist = false)
    private TypeName typeName;
    //条
    @TableField(exist = false)
    private Integer count;
    //请假时长
    @TableField(exist = false)
    private String time;
}
